/* Remaining-number pages have one bottom scroll owner. Inner tables are full-width clipped frames, not separate scrollers. */
.nak-page-scroll{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:visible;overscroll-behavior-inline:contain;touch-action:pan-x pan-y pinch-zoom;--table-frame-overflow:clip;--table-frame-max-width:none;--table-frame-width:max-content;}
.nak-page-content,.nak-data-form{display:contents;}
/* Size each result by its table's intrinsic columns. Forecast badges wrap within that width instead of stretching neighboring tables apart. */
.nak-page-scroll .result-block{flex:0 0 auto;width:min-content;}
/* Intrinsic table width breaks the percentage-width cycle inside max-content scroll frames. */
.nak-page-scroll .lotto-table{width:max-content;min-width:max-content;}
/* Keep each forecast metric readable when a localized label needs a second row. */
.nak-page-scroll .window-predict-grid>div{flex-wrap:wrap;}
.nak-page-scroll .window-predict-grid>div>span{white-space:nowrap;}
.nak-page-scroll.dragging{cursor:grabbing;user-select:none;}
.nak-control-card{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;justify-content:flex-start;width:min(100%,calc(100vw - 16px));padding:14px;margin:0;--nak-field-padding:0;}
.nak-control-card>h1,.nak-control-card>h2,.nak-control-card>h3,.nak-control-card>p{flex-basis:100%;}
.form-group{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;padding:var(--nak-field-padding,6px 10px);}
.nak-field{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;}
.nak-field>label{white-space:nowrap;margin:0;}
.nak-field>input:not([type=checkbox]),.nak-field>select{box-sizing:border-box;min-width:0;max-width:100%;}
.nak-control-card input[type=number]{width:72px;}
.nak-control-card input[type=text]{width:120px;}
.nak-field>select{width:auto;min-width:56px;}
.nak-control-card label{display:inline-flex;align-items:center;gap:6px;margin:0;}



/* Only the remaining-number view paints its round labels. Ordinary page titles sit directly on their panel. */
.nak-page-scroll :is(h2,h3) {
  background: rgba(255, 255, 255, 0.1);

  border-radius: 8px;
}



/* form 그룹에 유리 테두리 느낌 */

.form-group:not(:where([data-glass-surface] *)){border-radius: 8px;border: 1px solid rgba(255, 255, 255, 0.2);backdrop-filter:var(--neo-glass-blur);-webkit-backdrop-filter:var(--neo-glass-blur);background:var(--neo-glass-surface);}


/* 로또 번호 테이블 스타일 */
.lotto-table {
    border-collapse: collapse;
    text-align: left;
    table-layout: fixed; /* 테이블 레이아웃 고정 */
}

.lotto-table th, .lotto-table td {
    word-wrap: break-word; /* 긴 단어 줄바꿈 */
    white-space: normal;   /* 기본 줄바꿈 허용 */
    padding: 4px;          /* 셀 안의 여백 추가 */
}


/* 로또 공 모양 스타일 */
.lotto-ball {
    display: inline-block;
    width: 30px; /* 약간 작게 조정 */
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    /* 기본 파란색 계열을 어둡게 표현하는 그라데이션 */
    background: linear-gradient(135deg,rgba(0, 0, 0, 0),rgba(34, 34, 34, 0.29));
    color: #fff;
    text-align: center;
    font-weight: bold;
}

/* 색상별 로또공 (원래 색상 유지, 그라데이션으로 변경) */
.lotto-ball-yellow { 
    background: linear-gradient(135deg, rgb(255,230,0) 0%, rgb(164,134,0) 100%); 
    color: #000000a3; 
}
.lotto-ball-blue { 
    background: linear-gradient(135deg, rgb(0,140,255) 0%, rgb(0,80,145) 100%); 
    color: #fff;
 
}
.lotto-ball-red { 
    background: linear-gradient(135deg, rgb(255,42,0) 0%, rgb(174,3,0) 100%); 
    color: #fff;
 
}
.lotto-ball-black { 
    background: linear-gradient(135deg, rgba(92, 92, 92, 1) 0%, rgba(54, 53, 53, 1) 100%); 
    color: #fff;
 
}
.lotto-ball-green { 
    background: linear-gradient(135deg, rgb(0,255,8) 0%, rgb(0,90,5) 100%); 
    color: #fff;
 
}

/* 선택한 회차 바로 다음 회차 번호: 흰색 원에 파란 글씨 */
.highlight-ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    /* 흰색을 기본으로 약간의 그라데이션 효과 추가 */
    background: linear-gradient(135deg, #ffffff, #f2f2f2);
    color: #00000082;
    text-align: center;
    font-weight: bold;
    border: 1px solid #0000004d;
}

/* 추가적인 테이블, 폼 등의 스타일 */
.lotto-table td {
    padding: 0px;
    text-align: center;
}



/* 회차별 궁합 한 줄 출력 스타일 */
.combinations-line {
    margin-bottom: 1px;
}

.combination {
    display: inline-block;
    margin-right: 8px;
}

/* 로또공 기본 스타일 (공통 설정) */
.lotto-ball-yellow,
.lotto-ball-blue,
.lotto-ball-red,
.lotto-ball-black,
.lotto-ball-green {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;

}

/* 선택한 회차의 다음회차 번호 스타일: 흰색 원에 파란 배경 */
.next-round-ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;

    /* 흰색 대신 약간의 그라데이션 처리 */
    background: linear-gradient(135deg, #ffffff, #f2f2f2);
    color: #ff0000;
    border: 2px solid #ff0000;
}
